package cn.com.huzo.service.master.impl;

import cn.com.huzo.model.entities.master.VersionTypeEntity;
import cn.com.huzo.repository.master.VersionTypeRepository;
import huzofw.service.impl.GenericManagerImpl;
import cn.com.huzo.service.master.VersionTypeManager;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 版本修订类型管理服务对象类实现。
 *
 * @author 吴旭
 */
@Service("VersionTypeManager")
public class VersionTypeManagerImpl extends GenericManagerImpl<VersionTypeEntity, Long>
        implements VersionTypeManager {

    @Resource(name = "VersionTypeRepository")
    private VersionTypeRepository _dao;

    /**
     * {@inheritDoc}
     *
     */
    @Transactional
    @Override
    public List<VersionTypeEntity> fetchAll() throws Exception {
        return _dao.fetchAll();
    }
}
